package com.lau.product;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @author mohan lau
 * @version 1.0
 * @description: TODO
 * @classname 商品启动类
 * @date 2022/1/3 11:00
 */
@Slf4j
@SpringBootApplication
@MapperScan("com.lau.product.dao")
// 注解开启服务注册与发现功能
@EnableDiscoveryClient
public class ProductApplication {
    public static void main(String[] args) {
        SpringApplication.run(ProductApplication.class, args);
        log.info("商品服务启动……");
    }
}
